<% remote_form_for @valleyer,
        :update => :window,
        :url => homes_show_valleyers_url,
        :method => :post,
        :html => { 
          :id => 'new_valleyer_form'
        } do |f| %>
  <div id="memu" class="memu">
    <div class="message">
      <dl>
        <dt>帐&nbsp;&nbsp;&nbsp;&nbsp;号：</dt>
        <dd><%= f.text_field :nick_name, :class => 'text' %></dd>
      </dl>
      <dl>
        <dt>密&nbsp;&nbsp;&nbsp;&nbsp;码：</dt>
        <dd><%= f.password_field :password, :class => 'password' %></dd>
      </dl>
      <dl>
        <dt>确认密码：</dt>
        <dd><%= f.password_field :password_confirmation, :class => 'password' %></dd>
      </dl>
      <dl>
        <dt>电子邮件：</dt>
        <dd><%= f.text_field :email, :class => 'text' %></dd>
      </dl>
    </div>
    <div class="other">
      <div class="skip">
        <%= link_to_remote '已注册过,马上登录',
              :update => :window,
              :url => new_homes_show_session_url,
              :method => :get
          %>
      </div>
      <div>
        <%= link_to_function image_tag('valleyer/register_button.jpg'), "$('new_valleyer_form').onsubmit()" %>
      </div>
    </div>
  </div><!-- sessions/new.js-->
<% end %>
